<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <script src="../../Script/dojo/dojo.js" djConfig="parseOnLoad: true" type="text/javascript"></script>
    <style type="text/css">
        div {
            margin: 0 auto;
            width: 265px;
            height: 20px;
            border: 1px solid crimson;
            border-radius: 2px;
        }
    </style>
</head>
<body>
<script type="text/javascript">
    dojo.require("dojox.widget.Toaster");
    function showTextMessage() {
        dojo.publish("textMessageTopic",
                ["即时通信信息通知模式 -- '烤面包'"]
        );
    }
</script>

<button onclick="showTextMessage();">Click to show Message!</button>


<div dojoType="dojox.widget.Toaster" id="toast" positionDirection="br-upper" duration="4000"
     messageTopic="textMessageTopic">
</div>
</body>
</html>
